/*
 * Copyright (c) 2009. Silenus Consultoria, S.L.
 */
package es.silenus.detecta.dao;

import es.silenus.detecta.model.Question;


/**
 * @author <a href="mailto:dgarcia@silenus-consultoria.es">Daniel Garc&iacute;a</a>
 * @since 01-abr-2009 11:30:21
 */
public interface QuestionDAO extends ReadWriteDAO<Question, Long> {
	/**
	 * Finds a question by its code.
	 *
	 * @param code the question code.
	 * @param surveyId the survey identifier.
	 *
	 * @return the question.
	 */
	public Question findByCode(String code, int surveyId);
}
